<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewRequirementTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewRequirementLabel_id}"/>
                    <h:outputText value="#{requirementController.selected.id}" title="#{bundle.ViewRequirementTitle_id}"/>
                    <h:outputText value="#{bundle.ViewRequirementLabel_date}"/>
                    <h:outputText value="#{requirementController.selected.date}" title="#{bundle.ViewRequirementTitle_date}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewRequirementLabel_phoneNumber}"/>
                    <h:outputText value="#{requirementController.selected.phoneNumber}" title="#{bundle.ViewRequirementTitle_phoneNumber}"/>
                    <h:outputText value="#{bundle.ViewRequirementLabel_latitude}"/>
                    <h:outputText value="#{requirementController.selected.latitude}" title="#{bundle.ViewRequirementTitle_latitude}"/>
                    <h:outputText value="#{bundle.ViewRequirementLabel_longitude}"/>
                    <h:outputText value="#{requirementController.selected.longitude}" title="#{bundle.ViewRequirementTitle_longitude}"/>
                    <h:outputText value="#{bundle.ViewRequirementLabel_place}"/>
                    <h:outputText value="#{requirementController.selected.place}" title="#{bundle.ViewRequirementTitle_place}"/>
                    <h:outputText value="#{bundle.ViewRequirementLabel_type}"/>
                    <h:outputText value="#{requirementController.selected.type}" title="#{bundle.ViewRequirementTitle_type}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{requirementController.destroyAndView}" value="#{bundle.ViewRequirementDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewRequirementEditLink}"/>
                <br />
                <h:commandLink action="#{requirementController.prepareCreate}" value="#{bundle.ViewRequirementCreateLink}" />
                <br />
                <h:commandLink action="#{requirementController.prepareList}" value="#{bundle.ViewRequirementShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewRequirementIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
